package com.zzl.pensionorder.service.impl;

import com.zzl.entiey.PsOrders;
import com.zzl.pensionorder.mapper.OrderMapper;
import com.zzl.pensionorder.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: OrderServiceImpl
 * @Description: GOOD
 * @author: ZZL
 * @date: 2021/7/8  9:53
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public void saveOrder(PsOrders psOrders) {
        orderMapper.saveOrder(psOrders);
    }

    @Override
    public List<PsOrders> findAllOrders() {
        return orderMapper.findAllOrders();
    }

    @Override
    public void deletedOrdersByName(String ordersName) {
        orderMapper.deletedOrdersByName(ordersName);
    }

    @Override
    public void deleteGoodsNumberByGoodsName(String goodsName) {
        orderMapper.deleteGoodsNumberByGoodsName(goodsName);
    }
}
